package server.app.system;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.handler.AbstractHandler;
import common.html.HtmlWriter;

public class SystemHandler extends AbstractHandler
{

    public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
                    throws IOException, ServletException
    {
        response.setContentType("text/html;charset=utf-8");
        response.setStatus(HttpServletResponse.SC_OK);
        response.getWriter().println("lalalla");
        response.getWriter().println("lalalla");
        response.getWriter().println("lalalla");
        response.getWriter().println("lalalla");
        HtmlWriter hw = new HtmlWriter(response.getWriter());
        hw.h1("Hello");
        hw.hr();
        hw.print("Show me money!");
        response.flushBuffer();
    }

}
